|
![](/i/fill.gif) |
"Warp" <war### [at] tag povray org> wrote in message
news:4186b975@news.povray.org...
> Mike Williams <nos### [at] econym demon co uk> wrote:
> > Looks good, and only needs a couple of tiny fixes for it to give the
> > correct results.
>
> Like what?
>
> I know it gives garbage if you give it something else than a hex number,
> but I assumed the input is always ok.
>
Just this:
rgbf<int(value/65536), mod(int(value/256), 256), mod(value,256)>
Thanks a lot though, great script, works beautifully :)
David
[learning something new every day]
Post a reply to this message
|
![](/i/fill.gif) |